﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using ZeroBug.EasyFlow.Core;

namespace ZeroBug.EasyFlow.Communication
{
    [XmlInclude(typeof(TCPClientConfig))]
    public class CommunicationConfig
    {
        [Browsable(false)]
        public SerializableDictionary<string, string> SendCmd { get; set; }
        [DisplayName("接收编码规则"), Category("字符串")]
        public EncodingEnumStr ReceiveEncoding { get; set; }
        [DisplayName("发送编码规则"), Category("字符串")]
        public EncodingEnumStr SendEncoding { get; set; }
    }
    public enum EncodingEnumStr
    {
        ASCII,
        Default,
        UTF8,
        UTF32,
        Unicode
    }
}
